/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Principal.java
 *
 * Created on Jul 26, 2011, 5:27:42 PM
 */



package dced.ui;

import dced.util.HibernateUtil;
import java.awt.event.WindowListener;
import org.hibernate.*;
/**
 *
 * @author antonio
 */
public class V_Principal1 extends javax.swing.JFrame {

    /** Creates new form Principal */
    public V_Principal1() {
        initComponents();
        

    }

    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Ubuntu", 1, 24));
        jLabel1.setText("Servicios");

        jButton1.setText("Gestionar Inventario");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LlamaV_Inventario(evt);
            }
        });

        jButton2.setText("Gestionar Ventas");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LlamaV_Venta(evt);
            }
        });

        jButton3.setText("Gestionar Facturas");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LlamaV_Factura(evt);
            }
        });

        jButton4.setText("Gestionar Clientes");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LlamaV_Cliente(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(102, 102, 102)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton1)
                    .addComponent(jButton3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 174, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jButton4)
                        .addGap(125, 125, 125))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jButton2)
                        .addGap(128, 128, 128))))
            .addGroup(layout.createSequentialGroup()
                .addGap(278, 278, 278)
                .addComponent(jLabel1)
                .addContainerGap(300, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(51, 51, 51)
                .addComponent(jLabel1)
                .addGap(55, 55, 55)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton2))
                .addGap(45, 45, 45)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton4)
                    .addComponent(jButton3))
                .addContainerGap(159, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void LlamaV_Inventario(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LlamaV_Inventario
        // TODO add your handling code here:
        final V_Inventario Inv1 = new V_Inventario();
        Inv1.setVisible(true);
    }//GEN-LAST:event_LlamaV_Inventario

    private void LlamaV_Venta(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LlamaV_Venta
        // TODO add your handling code here:
        final V_Ventas vent=new V_Ventas();
        vent.setVisible(true);
        
    }//GEN-LAST:event_LlamaV_Venta

    private void LlamaV_Factura(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LlamaV_Factura
        // TODO add your handling code here:
        final V_Factura fact1=new V_Factura();
        fact1.setVisible(true);
    }//GEN-LAST:event_LlamaV_Factura

    private void LlamaV_Cliente(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_LlamaV_Cliente
        // TODO add your handling code here:
        final cliente cliente1=new cliente();
        cliente1.setVisible(true);
    }//GEN-LAST:event_LlamaV_Cliente

    /**
    * @param args the command line arguments
    */

    public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new V_Principal1().setVisible(true);

            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

}
